home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / filesyst / dosfs / dmsdosfs.000 / dmsdosfs / dmsdosfs-0.6.9b / inode.c.dpat < prev    next >
Text File  |  1996-06-29  |  2KB  |  48 lines

  1. find #include <linux/umsdos_fs.h>
  2. insert #include "umsdos_dmsdos.h"
  3. find void umsdos_patch_inode (
  4. find if (!umsdos_isinit(inode)){
  5. find if (S_ISREG(inode->i_mode)){
  6. insert #ifdef CONFIG_UMSDOS_UPON_DMSDOS
  7. insert        if(inode->i_sb->s_blocksize==512&&dostest(inode)){
  8. insert #else
  9. next
  10. insert #endif
  11. # the rest is support for root fs on compressed partition
  12. # comment it out or delete it if it doesn't patch into your umsdos version
  13. find struct super_block *UMSDOS_read_super(
  14. find struct inode *pseudo;
  15. insert                         struct inode *testinode;
  16. insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
  17. insert                         int i=0;
  18. insert                         extern int dbl_cvf_inos[];
  19. insert                         extern int lowest_never_used_cvfnr;
  20. insert #endif
  21. next
  22. insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
  23. insert                         psd_retry:
  24. insert                         if(lowest_never_used_cvfnr!=0&&i<MAXDBLFILES)
  25. insert                         { if(dbl_cvf_inos[i]!=0)
  26. insert                           {  printk("DMSDOS: umsdos_read_super: trying CVF %d\n",
  27. insert                                     i+1);
  28. insert                              testinode=iget(sb,dbl_cvf_inos[i++]);
  29. insert                              if(testinode==NULL)goto psd_retry;
  30. insert                           }
  31. insert                         }
  32. insert                         else
  33. insert                         {    printk("DMSDOS: umsdos_read_super: trying host fs\n");
  34. insert                              testinode=sb->s_mounted;
  35. insert                         }
  36. insert #else
  37. insert                         testinode=sb->s_mounted;
  38. insert #endif
  39. next
  40. replace                         if (umsdos_real_lookup (testinode,UMSDOS_PSDROOT_NAME
  41. find iput (pseudo);
  42. insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
  43. insert                         if(pseudo_root==NULL&&testinode!=sb->s_mounted)
  44. insert                         {   iput(testinode);
  45. insert                             goto psd_retry;
  46. insert                         }
  47. insert #endif
  48.